home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Go64!
/
Go64_2000-07_2000_CSW_Side_B.d64
/
naivem 1
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
406b
|
18 lines
1 g=0
2 print"[147]"
10 t$="abraham says abracadabra but nothing moves at all. "
15 t$=t$+"so abraham decides to forget about the abracadabra thing and moves "
16 t$=t$+"the table using his hands."
17 rem
18 rem
20 input "suchwort";p$:ts=ti
21 n=len(t$)
22 m=len(p$)
100 rem naive matcher
110 for s=1to n-m
130 if mid$(p$,1,m)<>mid$(t$,s,m) goto 160
150 g=g+1
160 next s
170 print"der string wurde";g;"mal gefunden"
180 printti-ts